package com.lwbldy.modules.system.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class SysUser implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long userId;
    //用户名
    private String username;
    //密码
    private String password;
    //盐
    private String salt;
    //邮箱
    private String email;
    //手机号
    private String mobile;
    //状态  0：禁用   1：正常
    private Integer status;
    //部门ID
    private Long deptId;
    //创建时间
    private Date createTime;

    //角色列表
    private List<Long> roleIdList;

    /**
     * 计算列
     * */
    private String roleIds;

    /**
     * 设置：
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    /**
     * 获取：
     */
    public Long getUserId() {
        return userId;
    }
    /**
     * 设置：用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }
    /**
     * 获取：用户名
     */
    public String getUsername() {
        return username;
    }
    /**
     * 设置：密码
     */
    public void setPassword(String password) {
        this.password = password;
    }
    /**
     * 获取：密码
     */
    public String getPassword() {
        return password;
    }
    /**
     * 设置：盐
     */
    public void setSalt(String salt) {
        this.salt = salt;
    }
    /**
     * 获取：盐
     */
    public String getSalt() {
        return salt;
    }
    /**
     * 设置：邮箱
     */
    public void setEmail(String email) {
        this.email = email;
    }
    /**
     * 获取：邮箱
     */
    public String getEmail() {
        return email;
    }
    /**
     * 设置：手机号
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    /**
     * 获取：手机号
     */
    public String getMobile() {
        return mobile;
    }
    /**
     * 设置：状态  0：禁用   1：正常
     */
    public void setStatus(Integer status) {
        this.status = status;
    }
    /**
     * 获取：状态  0：禁用   1：正常
     */
    public Integer getStatus() {
        return status;
    }
    /**
     * 设置：部门ID
     */
    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
    /**
     * 获取：部门ID
     */
    public Long getDeptId() {
        return deptId;
    }
    /**
     * 设置：创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    /**
     * 获取：创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    public List<Long> getRoleIdList() {
        return roleIdList;
    }

    public void setRoleIdList(List<Long> roleIdList) {
        this.roleIdList = roleIdList;
    }

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

    @Override
    public String toString() {
        return "SysUserEntity{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                ", status=" + status +
                ", deptId=" + deptId +
                ", createTime=" + createTime +
                ", roleIdList=" + roleIdList +
                '}';
    }
}